package com.secondhand.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.secondhand.domain.comment;
import com.secondhand.vo.orderItem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface orderMapper extends BaseMapper<comment> {
    boolean generateOrder(int sellerId, int buyerId, int goodId);

    List<orderItem> getSold(int userId);

    List<orderItem> getBought(int userId);

    List<orderItem> getHalfSoldOrder(int userId);

    List<orderItem> getHalfBoughtOrder(int userId);

    void send(int orderId);

    void receive(int orderId);

}
